#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class AwardRcd : Business.BusinessBase<AwardRcd, int>
	{
		#region Fields and Properties

		private String des = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Des
		{
			get { return des; }
			set
			{
				if (value != des)
				{
					MarkChanged("Des");
					des = value;
				}
			}
		}

		private String awardLvl = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AwardLvl
		{
			get { return awardLvl; }
			set
			{
				if (value != awardLvl)
				{
					MarkChanged("AwardLvl");
					awardLvl = value;
				}
			}
		}

		private String awardCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AwardCate
		{
			get { return awardCate; }
			set
			{
				if (value != awardCate)
				{
					MarkChanged("AwardCate");
					awardCate = value;
				}
			}
		}

		private DateTime awardDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime AwardDate
		{
			get { return awardDate; }
			set
			{
				if (value != awardDate)
				{
					MarkChanged("AwardDate");
					awardDate = value;
				}
			}
		}

		private String staffCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StaffCode
		{
			get { return staffCode; }
			set
			{
				if (value != staffCode)
				{
					MarkChanged("StaffCode");
					staffCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public AwardRcd()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override AwardRcd DataSelect(int id)
		{
			return Services.DALService.AwardRcdService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.AwardRcdService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.AwardRcdService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.AwardRcdService.Delete(this);
		}

		#endregion Base overrides
	}
}
